package Test;
//定义一个图书类Book，要求有如下属性
// ：图书名称、价格、数量。并完成对应构造以及geter与setter功能；
public class Book {
    private String name;
    private String price;
    private String sum;

    public Book() {
    }

    public Book(String name, String price, String sum) {
        this.name = name;
        this.price = price;
        this.sum = sum;
    }

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", sum='" + sum + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }
}
